package txxml;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.support.JdbcDaoSupport;
import org.springframework.stereotype.Component;

@Component("dao")
public class Dao extends JdbcDaoSupport {

	@Autowired
	public void setJT(JdbcTemplate jdbcTemplate) {
		super.setJdbcTemplate(jdbcTemplate);
	}
	
	
	public void find() {
		
		String sql="insert into user(USERID,USERNAME,PASSWORD,group_id) value(?,?,?,?)";
		JdbcTemplate template = this.getJdbcTemplate();
		int x=1/0;
		template.update(sql, 123,"adminkkk","admin123",1);
	}

}
